package com.example.myapplication.network

/**
{
  "adAppId": "调用广告sdk需要的AppId",
  "adSlot": [
    {
      "id": "73X9L2",
      "stubId": "103432163",
      "name": "视频详情页信息流广告",
      "interval": 80,
      "state": true,
      "ext": {}
    },
    {
      "id": "F3641K",
      "stubId": "103432164",
      "name": "开屏",
      "interval": 30,
      "state": true,
      "ext": {}
    }
  ],
  "update": {
    "force": false,
    "note": "<p><strong>1、icon更新</strong><br><strong>2、优化了播放器性能</strong><br><strong>3、优化了广告逻辑</strong></p>",
    "url": "http://www.baidu.com"
  }
}
*/
data class LaunchInfo(
    val adAppId: String = "",
    val adSlot: List<AdSlot> = listOf(),
    val update: Update? = null,
    val qrcode: String = "",
    val umengkey: String = ""
) {
    data class AdSlot(
        val ext: Ext? = null,
        val id: String = "",
        val interval: Int = 0,
        val name: String = "",
        val state: Boolean = false,
        val stubId: String = ""
    ) {
        class Ext
    }

    data class Update(
        val force: Boolean = false,
        val note: String = "",
        val url: String = ""
    )
}